package cn.lixin.product.domain;

import cn.lixin.basic.domain.BaseDomain;
import cn.lixin.org.domain.Shop;
import cn.lixin.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product extends BaseDomain {
    private String name;
    private String resources;
    private BigDecimal costprice;
    private BigDecimal saleprice;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date onsaletime;
    private Integer state = 0;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime = new Date();
    private Integer salecount;

    private Long shop_id;
    private Shop shop;

    private Long user_id;
    private User user;
    private ProductDetail detail;

}
